package com.qianli.cashmama.product.server.exception;



import com.qianli.cashmama.product.facade.enums.ErrorCodeEnum;

/**
 * Created by xuyang on 2017/7/19.
 */
public class ProductException extends RuntimeException{

    private ErrorCodeEnum errorCode;

    public ProductException(ErrorCodeEnum error) {
        super(error.getMsg());
        this.errorCode = error;
    }

    public ErrorCodeEnum getErrorCode() {
        return this.errorCode;
    }
}
